Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no longer panic upon seeing a moved or treeified bin in treeify_bin #87

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

domenicquirl
Copy link
Collaborator

@domenicquirl domenicquirl commented Apr 13, 2020

Removes the erroneous assumption that attempts to treeify a bin should always be successful and find a regular (linear) bin when loading the bin from the table.

Instead, it is also possible to find a Moved entry if the bin was moved in the meantime, or a Tree if another thread already treeified the bin before the first thread got to that point.

Loading a TreeNode remains an error, since these shouldn't be the head of a bin.

Closes #83. Refer to this issue or the comment introduced for the above cases with this commit for further explanation.


This change is Reviewable

@codecov
Copy link

codecov bot commented Apr 13, 2020

Codecov Report

Merging #87 into master will increase coverage by 0.01%.
The diff coverage is 70.45%.

Impacted Files Coverage Δ
src/node.rs 77.96% <ø> (ø)
src/map.rs 83.93% <70.45%> (-0.16%) ⬇️
src/raw/mod.rs 89.32% <0.00%> (+1.94%) ⬆️

@domenicquirl
Copy link
Collaborator Author

I don't think coverage matters for this change 😅

@jonhoo jonhoo merged commit f97487d into jonhoo:master Apr 13, 2020
@domenicquirl domenicquirl deleted the issue-83 branch April 16, 2020 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Racy test failure: treeifying a Moved entry
2 participants